package com.qgs.waf.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.qgs.waf.model.Customer;

import tk.mybatis.mapper.common.Mapper;

public interface CustomerMapper extends Mapper<Customer> {

	int insert(Customer customer);

	List<Customer> selectByRowBounds(Customer customer, RowBounds rowBounds);

	int updateByPrimaryKey(Customer customer);

	/**
	 * 根据省份和行业获取客户
	 * 
	 * @param begin
	 * @param end
	 * @param string2List
	 * @param string2List2
	 * @param groupBy String 分组数据
	 * @return
	 */
	List<Map<String, Object>> queryCustomerSattackByProvinceAndIndustry(@Param("begin") String begin, @Param("end") String end,@Param("provinces") List<String> provinces,@Param("industrys")  List<String> industrys,@Param("groupBy") String groupBy);

	/**
	 * 攻击详情
	 * 
	 * @param begin
	 * @param end
	 * @param type
	 * @param string2List
	 * @return
	 */
	List<Map<String, Object>> attackDetails(@Param("begin")String begin,  @Param("end")String end, @Param("type") String type, @Param("customers") List<String> customers);
}